import { http } from 'utils'

export function getCertificate(activityId) {
  return http
    .get('coupon/certificate', { activityId })
    .then(res => res)
}

export function certificateReceive(activityId) {
  return http
    .post('coupon/certificateReceive', { activityId })
    .then(res => res)
}

export function getCountryInviteConversionCode() {
  return http
    .get('mapi@countryInviteConversionCode')
    .then(res => res)
}

export function getMyInviteConversionCode() {
  return http
    .get('mapi@myInviteConversionCode')
    .then(res => res)
}
